package com.zhuss.core.datasource2.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.unit.SearchlUnitBo;
import com.zhuss.bean.vo.core.unit.DetaillUnitVo;
import com.zhuss.bean.vo.core.unit.ListlUnitVo;
import com.zhuss.core.datasource1.entity.Unit;
import com.zhuss.core.datasource2.dao.gen.lUnitMapper;
import com.zhuss.core.datasource2.entity.lUnit;

/**
 * @description: 数据库Dao
 * @author: zhushanshuo
 * @create: Sat May 29 16:22:57 CST 2021
 **/

@Mapper
public interface lUnitDao extends lUnitMapper {
	
	List<Unit> queryList(@Param("maxIncr") Long maxIncr);
	
	void create(lUnit record);
	
	void delete(lUnit record);

	List<lUnit> listAll();

	List<lUnit> listById(@Param("lUnitIdList") List<Long> lUnitIdList);
	
	List<lUnit> listByName(@Param("name") String name);
	
	List<ListlUnitVo> list(SearchlUnitBo bo);
	
	Integer countList(SearchlUnitBo bo);

	DetaillUnitVo detail(@Param("lUnitId") Long lUnitId);

}
